<h3>Internship requests for selected terms:</h3>
<table>
    <tr>
        <th>Name</th>
        <th>Term</th>
        <th>Status</th>
    </tr>
<?php if($this->applications):?>
    <?php foreach($this->applications as $app): ?>
    <tr>
    <td align="center"><a href="
		<?php echo $this->url(array('controller'=>'applications','action'=>'view','application'=>$app->_appID)); ?>
		"><?php echo $app->_firstName . " " . $app->_midName . " " . $app->_lastName ?></a></td>
	<td align="center"><?php echo $app->_term ?></td>
	<td align="center"><?php echo $app->getHighestAcceptance() ?></td> 	
	</tr>
    <?php endforeach ?>
<?php endif; ?>
<?php if(!$this->applications):?>
    <tr></tr>
	<tr>
		<td colspan = "5" align="center">No applications found.</td>
	</tr>
<?php endif; ?>
</table>